<!DOCTYPE HTML>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>金明黄金-后台管理</title>
    <link href="/ui/css/admin.css" type="text/css" rel="stylesheet" />
    <link href="/ui/dh/style.css" type="text/css" rel="stylesheet" />
  </head>
  <body>

    <div id="wrap">
      <?php include 'menu.php'; ?>
      <div id="main">
        <div class="headtitle">新闻中心</div>
<div id="menu">
	<ul>
		<li><a href="<?php echo site_url('admin/hang/index?types=1');?>" <?php echo $type_name == '1' ? 'class="currents"' : '' ?>><span>黄金</span></a></li>
		<li><a href="<?php echo site_url('admin/hang/index?types=2');?>" <?php echo $type_name == '2' ? 'class="currents"' : '' ?>><span>白银</span></a></li>
		<li><a href="<?php echo site_url('admin/hang/index?types=3');?>" <?php echo $type_name == '3' ? 'class="currents"' : '' ?>><span>美元</span></a></li>
		</ul>
</div>

        <div class="content">

         <table class="table">
        <thead>
          <tr>
			<th>ID</th>
            <th>标题</th>
			<th>编辑</th>
          </tr>
        </thead>
        <tbody>
          <?php foreach ($list as $row) { ?>
          <tr>
            <td><?php echo $row->id ?></td>
            <td><?php echo $row->title ?></td>
            <td><a href="<?php echo site_url('admin/hang/edit?id='.$row->id);?>" >编辑</a>|<a href="<?php echo site_url('admin/hang/delete?id='.$row->id);?>" >删除</a></td>
          </tr>
          <?php } ?>
        </tbody>
      </table>
      <div class="pagination">
        <?php echo $page ?></div>
    </div>
        </div>
      </div>
    </div>
  </body>
</html>